<template>
  <div>
    <h1 ref="h1">Hello Vue3</h1>
    <button @click="show">dianji</button>
    <person ref="p1" />
  </div>
</template>

<script lang="ts">
export default {
  name: "myRef",
};
</script>
<script setup lang="ts">
import { ref } from "vue";
import person from "./person.vue";
let h1 = ref();
let p1 = ref();
function show() {
  console.log(p1.value);
}
</script>

<style></style>
